/**
* @fileOverview 方案启动接口
* @author wind-lc
* @version 1.0
*/
import { post } from '@/request/http'

// 方案附件上传
const fileUpload = params => {
  return post(process.env.VUE_APP_CDHNTECH_API + '/ali/upload/oss', params.formData)
}
// 新增方案
const insertSelective = params => {
  return post(process.env.VUE_APP_CDHNTECH_API + '/hnPlan/insertSelective', params)
}
// 获取规则列表
const queryHnRuleList = params => {
  return post(process.env.VUE_APP_CDHNTECH_API + '/hnRule/queryHnRuleList', params)
}
// 获取企业列表
const getEntinfoList = params => {
  return post(process.env.VUE_APP_CDHNTECH_API + '/hnPlan/getEntinfoList', params)
}
// 获取方案详细信息
const getHnPlanById = params => {
  return post(process.env.VUE_APP_CDHNTECH_API + '/hnPlan/getHnPlanById', params)
}
// 获取企业选中列表
const getChooseEntinfoList = params => {
  return post(process.env.VUE_APP_CDHNTECH_API + '/hnPlan/getChooseEntinfoList', params)
}
// 编辑方案
const updateByPrimaryKeySelective = params => {
  return post(process.env.VUE_APP_CDHNTECH_API + '/hnPlan/updateByPrimaryKeySelective', params)
}

export { fileUpload, queryHnRuleList, getEntinfoList, insertSelective, getHnPlanById, getChooseEntinfoList, updateByPrimaryKeySelective }
